package com.lvtu.monitor.module.web.module.po;

import java.io.Serializable;
import java.util.Calendar;

import com.lvmama.com.lvtu.common.utils.DateUtil;

/** 
 * @Title: IndexException.java 
 * @Package com.lvtu.monitor.module.web.module.po 
 * @Description: TODO 
 * @author dengcheng 
 * @date 2015-5-21 下午5:38:32 
 * @version V1.0.0 
 */
public class IndexException implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String exception;
	private String ip;
	private String method;
	private String version;
	private String queryString;
	private String udid;
	private String userAgent;
	private String lvsessionId;
	private String channel;
	private Long createdTime;
	public String getException() {
		return exception;
	}
	public String getIp() {
		return ip;
	}
	public String getMethod() {
		return method;
	}
	public String getVersion() {
		return version;
	}
	public String getQueryString() {
		return queryString;
	}
	public String getUdid() {
		return udid;
	}
	public String getUserAgent() {
		return userAgent;
	}
	public void setException(String exception) {
		this.exception = exception;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	public void setMethod(String method) {
		this.method = method;
	}
	public void setVersion(String version) {
		this.version = version;
	}
	public void setQueryString(String queryString) {
		this.queryString = queryString;
	}
	public void setUdid(String udid) {
		this.udid = udid;
	}
	public void setUserAgent(String userAgent) {
		this.userAgent = userAgent;
	}
	public String getLvsessionId() {
		return lvsessionId;
	}
	public String getChannel() {
		return channel;
	}
	public void setLvsessionId(String lvsessionId) {
		this.lvsessionId = lvsessionId;
	}
	public void setChannel(String channel) {
		this.channel = channel;
	}
	public Long getCreatedTime() {
		return createdTime;
	}
	public void setCreatedTime(Long createdTime) {
		this.createdTime = createdTime;
	}
	
	public String getCreatedTimeStr(){
		Calendar cal = Calendar.getInstance();
		cal.setTimeInMillis(createdTime);
		return DateUtil.formatDate(cal.getTime(), "yyyy-MM-dd HH:mm:ss");
	}
	@Override
	public String toString() {
		return "IndexException [exception=" + exception + ", ip=" + ip
				+ ", method=" + method + ", version=" + version
				+ ", queryString=" + queryString + ", udid=" + udid
				+ ", userAgent=" + userAgent + ", lvsessionId=" + lvsessionId
				+ ", channel=" + channel + ", createdTime=" + createdTime + "]";
	}
	
}
